package cn.bugio.note.sentinel;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author Vincent Vic
 * @version 1.0
 * @Description
 * @since 2021/2/27
 */

@Slf4j
@Component
public class GlobalSentinelBlock {

    public static String block(String a, BlockException e){
      log.warn("限流或者降级 block",e);
      return "限流或者降级 block";
    }
}
